<?php

namespace App\Http\Controllers\admin;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use DB;

class issueController extends Controller
{
    //
    public function index()
    {
    	$list = DB::table('issue')->get();
    	return view('admin.issue.index',['list'=>$list]);
    }
     public function destroy($id)
    {
    	$m = DB::table('issue')->where('issueid',$id)->delete();
    	return redirect('admin/issue');
    }
}
